package com.company.myfirstjmixproject.listener;

import com.company.myfirstjmixproject.entity.House;
import io.jmix.core.event.EntityChangedEvent;
import io.jmix.core.event.EntitySavingEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
public class HouseEventListener {

    @EventListener
    public void onHouseSaving(EntitySavingEvent<House> event) {

    }

    @EventListener
    public void onHouseChangedBeforeCommit(EntityChangedEvent<House> event) {

    }
}